// 引入API
import {createRouter,createWebHashHistory} from "vue-router"

// 引入两个页面
import Home from '../views/Home.vue'
import About from '../views/About.vue'

const routes =[
   {
     path:'/',
     component:Home
   } ,
   {
     path:'/about',
     component:About
  } 
]
// 创建了一个路由的实例化对象
const router =createRouter({
    history:createWebHashHistory(),
    routes
})

export default router